package com.fpt.edu.vn.h2tv.dto;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import com.sun.xml.txw2.annotation.XmlElement;

@XmlRootElement(name="Book")
public class BookDetail {
    private Integer booktid;
    private String bookname;
    private String author;
    private String description;
    private Double price;
    private String bookImage;
    private List<Comment> comment;
    
    
    @XmlElement("bookImage")
    public String getBookImage() {
        return bookImage;
    }
    public void setBookImage(String bookImage) {
        this.bookImage = bookImage;
    }
    @XmlElement("comments")
    public List<Comment> getComment() {
        return comment;
    }
    public void setComment(List<Comment> comment) {
        this.comment = comment;
    }
    @XmlAttribute(name="bookID")
    public Integer getBooktid() {
        return booktid;
    }
    public void setBooktid(Integer booktid) {
        this.booktid = booktid;
    }
    
    @XmlElement
    public String getBookname() {
        return bookname;
    }
    public void setBookname(String bookname) {
        this.bookname = bookname;
    }
    
    @XmlElement
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    
    @XmlElement
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    
    @XmlElement
    public Double getPrice() {
        return price;
    }
    public void setPrice(Double price) {
        this.price = price;
    }
    
   
    
}
